<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!-- saved from url=(0087)https://account.chsi.com.cn/account/reg/preregister.action?from=cy&request_locale=zh_CN -->
<html style="margin-top: 0px;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
<title>报名参赛 </title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="icon" href="https://t1.chei.com.cn/account/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="${pageContext.request.contextPath }/statics/css/iconfont.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath }/statics/css/ui-dialog.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath }/statics/css/account-1.0.0.min.css">
    
    <script async="" src="${pageContext.request.contextPath }/statics/js/analytics.js.下载"></script><script src="${pageContext.request.contextPath }/statics/js/jquery.min.js.下载"></script>
    <script src="${pageContext.request.contextPath }/statics/js/jquery.validate.min.js.下载"></script>
    <script src="${pageContext.request.contextPath }/statics/js/jqueryloading-1.0.3.js.下载"></script>
    <script src="${pageContext.request.contextPath }/statics/js/wap.min.js.下载"></script>
    <script>
        if(wapFn()){addFile('css','https://t1.chei.com.cn/account/css/custom/account_wap-1.0.0.min.css?20191028');}
    </script>   
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-100524-4', {'sampleRate': 1});
    ga('send', 'pageview');
</script>
<style id="poshytip-css-tip-yellow" type="text/css">div.tip-yellow{visibility:hidden;position:absolute;top:0;left:0;}div.tip-yellow table.tip-table, div.tip-yellow table.tip-table td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;vertical-align:middle;}div.tip-yellow td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:10px;width:10px;overflow:hidden;}div.tip-yellow td.tip-right{background-position:100% 0;}div.tip-yellow td.tip-bottom{background-position:100% 100%;}div.tip-yellow td.tip-left{background-position:0 100%;}div.tip-yellow div.tip-inner{background-position:-10px -10px;}div.tip-yellow div.tip-arrow{visibility:hidden;position:absolute;overflow:hidden;font:1px/1px sans-serif;}</style></head>
<body><div id="browserinspect" class="browserinspect"><div>您的浏览器版本太低了，无法使用本网站的所有功能。请升级到最新版浏览器，推荐下载使用浏览器IE9+、Firefox、Chrome等。<div id="browserinspectclose"><a id="browserinspecta"><span id="browserinspectcc">Close</span><span aria-hiden="true">×</span></a></div></div><style>.browserinspect {position:absolute;position:fixed;z-index:111111;width:100%; top:0px; left:0px; display:none;border-bottom:1px solid #A29330;background:#FDF2AB no-repeat 13px center url(https://t1.chei.com.cn/common/ch/browser/images/dialog-warning.png);text-align:left; cursor:pointer;font: 13px Arial,sans-serif;color:#000;}.browserinspect div { padding:5px 36px 5px 40px; }.browserinspect>div>a,.browserinspect>div>a:visited{color:#E25600; text-decoration: underline;}#browserinspectclose{position:absolute;right:6px;top:-2px;height:20px;width:12px;font:18px bold;padding:0;}#browserinspecta{display:block;}#browserinspectcc{display:block;position:absolute; top:-99999px;}</style></div>
<div class="outer-layer">
    <div class="outer-layer-content">       


    <script>
    $(function(){
        var title = $('title').text();
        title = title.substring(0,title.indexOf('_'));
        $('.header').find('.location').text(title);
    })    
    </script>

<link rel="stylesheet" href="${pageContext.request.contextPath }/statics/css/tip-yellow.css" media="screen">
<style>
    .tip-yellow{ background-color: #fef9d9 !important;}
    .tip-yellow .tip-arrow-top{ background-image: url("https://t1.chei.com.cn/common/js/poshytip/tip-yellow/tip-yellow_arrows.png") !important; }
</style>

<div class="bg">
    <div class="innter-container clearfix">
        <div class="form-container">
            <form id="user_reg_fm" name="user_reg_fm" action="https://account.chsi.com.cn/account/reg/registerprocess.action" method="post" autocomplete="off" novalidate="novalidate">
                  <div class="regist-tips-box" style="display:;">
                        <i class="iconfont toggle-icon-wap" data-flag="1"></i>
                        <h2 style="text-align: center;">报名参赛</h2>
                        
                    </div>
               <table>
                    <tbody>
                    
                       <tr>
                        <th><span class="required" aria-required="true">*</span>姓名</th>
                        <td>
                            <input type="text" name="xm" value="" id="xm" class="smzc-input" autocomplete="off">
                        </td>
                        <td class="validate-tips" colspan="3">                            
                        </td>
                    </tr>
                    
                    <tr>
                        <th><span class="required" aria-required="true">*</span>专业</th>
                        <td>
                            <input type="text" name="zy" value="" id="zy" class="smzc-input" autocomplete="off">
                        </td>
                        <td class="validate-tips" colspan="3">                            
                        </td>
                    </tr>

                     <tr>
                        <th><span class="required" aria-required="true">*</span>证件号码</th>
                        <td>
                            <input type="text" name="sfzh" value="" id="sfzh" class="smzc-input" autocomplete="off">
                        </td>
                        <td class="validate-tips" colspan="3">
                        </td>
                    </tr>

                    <tr>
                        <th><span class="required" aria-required="true">*</span>手机号</th>
                        <td class="clearfix">
 
                            <input type="text" name="mphone" maxlength="11" value="" id="mphone" class="jym-input" autocomplete="off">
                        </td>
                        <td class="validate-tips" colspan="3">
                         
                        </td>
                    </tr>
                    
                     <tr>
                        <th><span class="required" aria-required="true">*</span>上传素材</th>
                        <td class="clearfix">
                    <input type="hidden" id="errorinfo_wp" value="${uploadWpError}"/>
                   	<input type="file" name="attachs" id="a_workPicPath"/>                        
                        </td>
                        <td class="validate-tips" colspan="3">                         
                        </td>
                    </tr>

              
                         <tr>
                            <th class="wap-hide">&nbsp;</th>
                            <td colspan="4"> 
                                <input type="submit" id="newbutton" name="newbutton" value="提交" class="enter-btn">                               
                            </td>
                        </tr>
                  
                </tbody>
              </table>
            </form>
    </div>
    </div>
</div>

    <script src="${pageContext.request.contextPath }/statics/js/vcodetimehold-1.0.0.js.下载"></script>
    <script src="${pageContext.request.contextPath }/statics/js/jquery.pstrength-chsi-2.1.js.下载"></script>
    <script src="${pageContext.request.contextPath }/statics/js/regbysfzhforgat-2.0.3.js.下载"></script>
    <script src="${pageContext.request.contextPath }/statics/js/automail.js.下载"></script>

<script src="${pageContext.request.contextPath }/statics/js/jquery.poshytip.min.js.下载"></script>
<script>

    //收起更多设置
    $(".collapse").click(function (){
        var toggleFlag = $(this).attr("toggle-flag");
        if( toggleFlag == "1" ){
            $(".collapse-box").hide();
            $(this).attr("toggle-flag","0").find(".collapse-text").text("展开更多设置");
            $(this).find(".iconfont").html("&#xe60f;");
        }else{
            $(".collapse-box").show();
            $(this).attr("toggle-flag","1").find(".collapse-text").text("收起更多设置");
            $(this).find(".iconfont").html("&#xe608;");
        }
    });
    
    var refreshId = cusSetInterval(vcodetips, 1000,"mphone_messagesend_btn",refreshId,"重新获取","mphone_messagesend_btn","mphone_messagesend_btn");
    serviceNote('user_reg_fm','serviceNote_yes','newbutton');

    $('#country').change(function(e) {
        var value = $(this).val(),
            str = '';
        switch(value){
            case 'CN':str='0086';break;
            case 'HK':str='00852';break;
            case 'MO':str='00853';break;
            case 'TW':str='00886';break;
        }
        $('#mphonearea').text(str);
        $('#mphoneareaSel').val(str);
    });

    $('#mphoneareaSel').change(function(e) {
         var value = $(this).val(),
            str = '';
        switch(value){
            case '0086':str='0086';break;
            case '00852':str='00852';break;
            case '00853':str='00853';break;
            case '00886':str='00886';break;
        }
        $('#mphonearea').text(str);
    });
    

    $("#user_reg_fm .mbwt").change(function(){
        oldVal=$(this).attr("old");
        var _thisVal=$(this).find('option:selected').val();
        $(this).parent().parent().parent("tr").siblings("tr").find("option[value="+_thisVal+"]").wrap("<span></span>").not("option[value=0]").hide();
        $(this).parent().parent().parent("tr").siblings("tr").find("option[value="+oldVal+"]").show();
        if(oldVal){
            $(this).parent().parent().parent("tr").siblings("tr").find("option[value="+oldVal+"]").unwrap().show();
        }
        $(this).attr("old",_thisVal);
    });
     clickFn();

     if (wapFn()) {
        $(".regist-tips-box").insertAfter("#user_reg_fm");
    }

function clickFn(){
    // 用户提交表单的操作处理
    $("#newbutton").click(function() {
        if(!$('#user_reg_fm').valid()){
            return;
        }
        var sfzhVal = $("#sfzh").val();
        var showSfzhStr = sfzhVal.substring(0,6) + " " + sfzhVal.substring(6,14) + " " + sfzhVal.substring(14);
        var regMessageConfig ="<div class='dialog-msgbox'><span class='dialog-title'>姓名：</span><span>"+$("#xm").val()+"</span><br/>";
        regMessageConfig += "<span class='dialog-title'>证件号码：</span><span>" + showSfzhStr + "</span></div><br/>";
        
        var regStr_ = /(^[a-zA-Z]+[\u4e00-\u9fa5]+([\u4e00-\u9fa5]|[a-zA-Z])*$)|(^[\u4e00-\u9fa5]+[a-zA-Z]+([\u4e00-\u9fa5]|[a-zA-Z])*$)/;
        var v_ = $("#xm").val();
        if(regStr_.test(v_)){
            regMessageConfig += "<font color='red'><span>您的姓名同时含有中英文，可能会影响学信档案的操作，确认提交吗?</span></font>";
        }
        dialog({
            title: "提示",
            content: regMessageConfig,
            button: [
                {
                    value: '确定',
                    callback: function () {
                        if($('#user_reg_fm').valid()){
                            if($.trim($("#validateType").val()) == '')
                              $("#validateType").val("1");
                            $("#user_reg_fm").submit();
                        }
                        this.close();
                    },
                    autofocus: true
                },
                {
                    value: '取消',
                    callback: function () {
                        this.close();
                    }
                }
            ]
        }).showModal();
        return false;
    });     
}

(function (factory) {
    if ( typeof define === 'function' && define.amd ) {
        // AMD. Register as an anonymous module.
        define(['jquery'], factory);
    } else if ( typeof exports === 'object' ) {
        // Node/CommonJS style for Browserify
        module.exports = factory;
    } else {
        // Browser globals
        factory(jQuery);
    }
}(function ($) {
    $.fn.bgiframe = function(s) {
        s = $.extend({
            top         : 'auto', // auto == borderTopWidth
            left        : 'auto', // auto == borderLeftWidth
            width       : 'auto', // auto == offsetWidth
            height      : 'auto', // auto == offsetHeight
            opacity     : true,
            src         : 'javascript:false;',
            conditional : /MSIE 6\.0/.test(navigator.userAgent) // expression or function. return false to prevent iframe insertion
        }, s);

        // wrap conditional in a function if it isn't already
        if ( !$.isFunction(s.conditional) ) {
            var condition = s.conditional;
            s.conditional = function() { return condition; };
        }

        var $iframe = $('<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+
                           'style="display:block;position:absolute;z-index:-1;"/>');

        return this.each(function() {
            var $this = $(this);
            if ( s.conditional(this) === false ) { return; }
            var existing = $this.children('iframe.bgiframe');
            var $el = existing.length === 0 ? $iframe.clone() : existing;
            $el.css({
                'top': s.top == 'auto' ?
                    ((parseInt($this.css('borderTopWidth'),10)||0)*-1)+'px' : prop(s.top),
                'left': s.left == 'auto' ?
                    ((parseInt($this.css('borderLeftWidth'),10)||0)*-1)+'px' : prop(s.left),
                'width': s.width == 'auto' ? (this.offsetWidth + 'px') : prop(s.width),
                'height': s.height == 'auto' ? (this.offsetHeight + 'px') : prop(s.height),
                'opacity': s.opacity === true ? 0 : undefined
            });

            if ( existing.length === 0 ) {
                $this.prepend($el);
            }
        });
    };

    // old alias
    $.fn.bgIframe = $.fn.bgiframe;

    function prop(n) {
        return n && n.constructor === Number ? n + 'px' : n;
    }

}));
</script>
    </div>
</div>

<div class="outer-footer"></div>
<script src="${pageContext.request.contextPath }/statics/js/dialog-min.js.下载"></script>
<script src="${pageContext.request.contextPath }/statics/js/ie-prompt.min.js.下载"></script>
</body></html>